<div id="navMenu">
<ul>
<li <?php if($navid == 'mycourse'){ ?> class="selected" <?php } ?> id="mycourse"><a><span>我的课程</span></a></li>
<li <?php if($navid == 'examlog'){ ?> class="selected" <?php } ?> id="examlog"><a><span>考试记录</span></a></li>
</ul>
</div>